//
//  SCDetailCommentCell.m
//  shangcheng
//
//  Created by 张艳江 on 2019/6/17.
//  Copyright © 2019 张艳江. All rights reserved.
//

#import "SCDetailCommentCell.h"

@implementation SCDetailCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.commentImage.contentMode = UIViewContentModeScaleAspectFill;
    self.commentImage.clipsToBounds = YES;
    ViewRadius(self, 3.0);
}
- (void)setModel:(SCModel *)model{
    _model = model;
    [self.headImage sd_setImageWithURL:[NSURL URLWithString:model.avatar] placeholderImage:[UIImage imageNamed:@""]];
    [self.commentImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",Evaluate_ImageURL,model.pic[0]]] placeholderImage:[UIImage imageNamed:@""]];
    self.nickNameLab.text = model.nickname;
    self.contentLab.text = model.comment;
    self.imageNumLab.text = [NSString stringWithFormat:@"%@张",model.pic_count];
}

@end
